<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/convene.css" media="screen"/>
<div class="dirbar">
	<a href="<c:url value='/home.do'/>"><span>首页</span></a> &gt;&gt; <a href="<c:url value='/convene/index.do'/>"><span>信息台</span></a>
</div>
<div class="dirbar5">
	<span>您可以在此发布希望得到快速回复的信息</span>
	<br/>
	<button class="btn3" onclick="javascript:createConvene()">发布信息</button>
</div>
<div class="convene">
	<table class="t_convenelist" cellpadding="5px" cellspacing="0">
	<tr>
		<th width="600px" style="align:center">
			主题
		</th>
		<th width="100px" nowrap="nowrap">
			作者
		</th>
		<th width="140px" nowrap="nowrap">
			发布时间
		</th>
	</tr>
	<c:forEach var="convene" items="${page.items}"  varStatus="status">
		<tr>
			<td style="text-align:left;padding-left:5px">
				<a href="<c:url value='/convene/view.do?conveneId=${convene.conveneId}'/>" target="_blank">
				<c:out value="${convene.title}"></c:out>
				</a>
			</td>
			<td>
				<ms:user type="nickname" link="true" userid="${convene.user.userid}" nickname="${convene.nickname}"  style="a2"></ms:user>
			</td>
			<td >
				<fmt:formatDate value="${convene.createTime}" pattern="yyyy/MM/dd HH:mm"/>
			</td>
		</tr>
	</c:forEach>
	</table>
	<jsp:include page="/common/pager.jsp" />
</div>
<script>
function createConvene(){
	var isLogin = '<c:out value="${isLogin}"/>';
	if(isLogin == 'false'){
		alert("请登录");
		return;
	}
	window.location.href = ctx + "/convene/create.do";
}
</script>